package isanfeng.tuxiaoer.pattern.structural.decorator.v2;

/**
 * @author 李红辉
 * @version 1.0
 * @date 2019/10/12 18:24
 */
public abstract class AbstractDecorator extends ABatterCake {

    private ABatterCake aBatterCake;

    /**
     * 做事情呀
     */
    protected abstract void doSomething();

    public AbstractDecorator(ABatterCake aBatterCake) {
        this.aBatterCake = aBatterCake;
    }

    @Override
    public String getDesc() {
        return aBatterCake.getDesc();
    }

    @Override
    public int getPrice() {
        return aBatterCake.getPrice();
    }
}
